package com.example.demo.mapper;

import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    public User getUser(@Param("uaccount") String ccount,@Param("upassword") String password);
    public User getUserByAccount(@Param("uaccount") String account);
    public void insertUser(User user);
    public List<User> getAllUser(Integer page,Integer size);
    public void deleteUser(@Param("uid") String uid);
    public List<User> getAllUser();
}
